package com.wejoy.video.middle.station.data.mapper.workorder;

import com.wejoy.video.middle.station.data.domain.workorder.WorkOrderInfo;

import java.util.List;

/**
 * 工单主表
 *
 * @author miracle_j
 * @date 2022年11月16日 17:28:50
 */
public interface IWorkOrderInfoMapper {

    /**
     * 插入
     *
     * @param workOrderInfo workOrderInfo
     * @return int
     */
    int insertSelective(WorkOrderInfo workOrderInfo);

    /**
     * 更新
     *
     * @param setParam   setParam
     * @param whereParam whereParam
     * @return int
     */
    int updateSelective(WorkOrderInfo setParam, WorkOrderInfo whereParam);

    /**
     * 数量
     *
     * @param workOrderInfo workOrderInfo
     * @return int
     */
    int getCount(WorkOrderInfo workOrderInfo);


    /**
     * 数据权限数量
     *
     * @param workOrderInfo workOrderInfo
     * @return int
     */
    int getDataPermissionCount(WorkOrderInfo workOrderInfo);

    /**
     * 单条
     *
     * @param workOrderInfo workOrderInfo
     * @return WorkOrderInfo
     */
    WorkOrderInfo getOne(WorkOrderInfo workOrderInfo);

    /**
     * 多条
     *
     * @param workOrderInfo workOrderInfo
     * @return List<WorkOrderInfo>
     */
    List<WorkOrderInfo> getList(WorkOrderInfo workOrderInfo);

    /**
     * 分页
     *
     * @param workOrderInfo workOrderInfo
     * @return List<WorkOrderInfo>
     */
    List<WorkOrderInfo> getPageList(WorkOrderInfo workOrderInfo);
    /**
     * 分页-数据权限
     *
     * @param workOrderInfo workOrderInfo
     * @return List<WorkOrderInfo>
     */
    List<WorkOrderInfo> getDataPermissionPageList(WorkOrderInfo workOrderInfo);

}